package com.hl.web;

import com.hl.service.WodetongzhiService;
import com.hl.util.GeneralResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wodetongzhi")
public class WodetongzhiController {
    @Autowired
    private WodetongzhiService wodetongzhiService;
    @RequestMapping("/list")
    public GeneralResult list(){
        return GeneralResult.success(wodetongzhiService.noticelist());
    }
}
